<?php

use think\facade\Route;

/**
 * 系统设置相关
 */
//登录相关
Route::rule('captcha','Verify/index','GET');
Route::rule('login','Login/login','POST');
Route::rule('getAdminInfoByToken','User/getUserInfo','GET');
Route::rule('getMenuListByToken','User/getMenuList','GET');
Route::rule('logout','Login/logout','GET');

//角色管理
Route::rule('getRoleList','Role/list','GET');
Route::rule('getRoleTreeById','Role/treeById','GET');
Route::rule('saveRole','Role/save','POST');
Route::rule('deleteRoleById','Role/deleteById','GET');
Route::rule('updateStatus','Role/updateStatus','GET');
//用户管理
Route::rule('getAdminUserList','User/list','GET');
Route::rule('saveAdminUser','User/save','POST');
Route::rule('updateUserStatus','User/updateStatus','GET');
Route::rule('deleteUserById','User/deleteById','GET');
//公用数据配置
Route::rule('getCategoryTree','Category/allTree','GET');
Route::rule('saveCategory','Category/save','POST');
Route::rule('updateCategoryStatus','Category/updateStatus','GET');
Route::rule('deleteCategory','Category/deleteById','GET');
Route::rule('getCategory','Category/category','GET');
Route::rule('getCategoryMultiple','Category/categoryMultiple','POST');

Route::rule('getConstant','Constant/constant','GET');
/**
 * 应用相关
 */
//项目管理
Route::rule('projectList','Project/list','GET');
Route::rule('saveProject','Project/save','POST');
Route::rule('deleteProject','Project/deleteById','GET');
Route::rule('updateProjectStatus','Project/updateStatus','GET');
//指标管理
Route::rule('indicatorsList','Indicators/list','GET');
Route::rule('saveIndicators','Indicators/save','POST');
Route::rule('deleteIndicators','Indicators/deleteById','GET');
Route::rule('updateIndicatorsStatus','Indicators/updateStatus','GET');
//科研机构管理
Route::rule('institutionList','Institution/list','GET');
Route::rule('saveInstitution','Institution/save','POST');
Route::rule('deleteInstitution','Institution/deleteById','GET');
Route::rule('updateInstitutionStatus','Institution/updateStatus','GET');
//职称管理
Route::rule('titlesList','Titles/list','GET');
Route::rule('saveTitles','Titles/save','POST');
Route::rule('deleteTitles','Titles/deleteById','GET');
Route::rule('updateTitlesStatus','Titles/updateStatus','GET');
Route::rule('titlesTree','Titles/tree','GET');
//人才管理
Route::rule('talentList','Talent/list','GET');
Route::rule('saveTalent','Talent/save','POST');
Route::rule('deleteTalent','Talent/deleteById','GET');
Route::rule('updateTalentStatus','Talent/updateStatus','GET');
//争取资金管理
Route::rule('fundingList','Funding/list','GET');
Route::rule('saveFunding','Funding/save','POST');
Route::rule('deleteFunding','Funding/deleteById','GET');
Route::rule('updateFundingStatus','Funding/updateStatus','GET');
